#pragma once

#include <windows.h>

class BagManager
{
	bool mLocks[10];
	char mLetters[10];

	HANDLE mAccessSem;

public:
	void Reset();

public:
	BagManager(void);
	bool LockPosition(UINT _line, UINT _col);
	void UnlockPosition(UINT _line, UINT _col);

	char Letter(UINT _pos);
	char Letter(UINT _line, UINT _col);

	void ResetPosition(UINT _line, UINT _col);
};

